package designPattern.action11.command.c4t2.concrete.command;

import designPattern.action11.command.c4t2.tools.CompanyArmy;
import designPattern.action11.command.c4t2.sketch.Command;

public class ConcreteCommand implements Command {
    CompanyArmy army;           //含有接收者的引用

    public ConcreteCommand(CompanyArmy army) {
        this.army = army;
    }

    @Override
    public void execute() {    //封装着指挥官的请求
        army.sneakAttack();     //偷袭敌人
    }
}
